﻿(function () {
    var a = null, b = window, c = b.googleSearchResizeIframe || b.googleSearchPath && "/cse" == b.googleSearchPath && "undefined" == typeof b.googleSearchResizeIframe, d = document.location.protocol, g = document.location.search, h, i, l, m; function n(e, j, f, y) { for (var J = {}, e = e.split(f), f = 0; f < e.length; f++) { var k = e[f], z = k.indexOf(j); if (0 < z) { var s = k.substring(0, z), s = y ? s.toUpperCase() : s.toLowerCase(), k = k.substring(z + 1, k.length); J[s] = k } } return J }
    function o(e, j, f) { if (f) { var y = e.slice(-1), j = [e, "?" == y ? "" : "&", j, "=", encodeURIComponent(f)].join(""); if (2048 >= j.length) return j } return e } (i = b.googleSearchNumAds) || (i = 9); l = (l = b.googleNumSearchResults) ? Math.min(l, 20) : 10; var p = { 9: 795, 10: 795, 11: 500 }, q, r = i, t = l, u = "/cse" == b.googleSearchPath, v = {}; v[9] = 300 + 90 * t; v[10] = 300 + 50 * Math.min(r, 4) + 90 * t; v[11] = 300 + 50 * r + 90 * t; if (u) for (var w = 660 + 120 * t, x = 9; 11 >= x; x++) v[x] = Math.max(v[x], w); q = v;
    var A, B = "", B = b.googleSearchDomain ? B + b.googleSearchDomain : B + "www.google.com", C = !1, B = b.googleSearchPath ? B + b.googleSearchPath : B + "/custom", B = (C ? d : "http:") + "//" + B + "?"; b.googleSearchQueryString && (b.googleSearchQueryString = b.googleSearchQueryString.toLowerCase()); var D = B, E; var F = g;
    if (1 > F.length) E = ""; else {
        var F = F.substring(1, F.length), G = n(F, "=", "&", !1); "q" != b.googleSearchQueryString && G[b.googleSearchQueryString] && (G.q = G[b.googleSearchQueryString], delete G[b.googleSearchQueryString]); if (G.cof) { var H = n(decodeURIComponent(G.cof), ":", ";", !0), I = H.FORID; I && (h = parseInt(I, 10)) } G.siteurl && (m = decodeURIComponent(G.siteurl)); var K = document.getElementById(b.googleSearchFormName); if (K) {
            if (K.q && G.q && (!G.ie || "utf-8" == G.ie.toLowerCase())) K.q.value = decodeURIComponent(G.q.replace(/\+/g, " "));
            if (K.sitesearch) for (var L = 0; L < K.sitesearch.length; L++) K.sitesearch[L].checked = G.sitesearch == a && "" == K.sitesearch[L].value ? !0 : K.sitesearch[L].value == G.sitesearch ? !0 : !1
        } var M = "", N; for (N in G) M += "&" + N + "=" + G[N]; E = M.substring(1, M.length)
    } B = D + E; B = o(B, "ad", "n" + i); B = o(B, "num", l); B = o(B, "adtest", b.googleAdtest); if (c) { var O = b.location.href, P = O.indexOf("#"); -1 != P && (O = O.substring(0, P)); B = o(B, "rurl", O) } var Q = B, R = b.document.getElementById(b.googleSearchFormName); m || (m = b.document.referrer, Q = o(Q, "siteurl", m));
    if (R && !R.siteurl) { var S = document.createElement("input"); S.name = "siteurl"; S.type = "hidden"; S.value = m; R.appendChild(S) } A = B = Q; b.googleSearchFrameborder || (b.googleSearchFrameborder = "0"); var T = document.getElementById(b.googleSearchIframeName);
    if (T && p[h]) {
        var U = b.googleSearchFrameWidth ? Math.max(b.googleSearchFrameWidth, p[h]) : p[h], V = b.googleSearchFrameHeight ? Math.max(b.googleSearchFrameHeight, q[h]) : q[h], W = document.createElement("iframe"), X = { name: "googleSearchFrame", src: A, frameBorder: b.googleSearchFrameborder, width: "665", height: "1300", marginWidth: "0", marginHeight: "0", hspace: "0", vspace: "0", allowTransparency: "true", scrolling: "no" }, Y; for (Y in X) W.setAttribute(Y, X[Y]); T.appendChild(W); W.attachEvent ? W.attachEvent("onload", function () {
            window.scrollTo(0,
0)
        }) : W.addEventListener("load", function () { window.scrollTo(0, 0) }, !1); c && b.setInterval(function () { if (b.location.hash && b.location.hash != "#") { var e = b.location.hash.substring(1) + "px"; if (W.height != e && e != "0px") W.height = e } }, 10)
    } b.googleSearchIframeName = a; b.googleSearchFormName = a; b.googleSearchResizeIframe = a; b.googleSearchQueryString = a; b.googleSearchDomain = a; b.googleSearchPath = a; b.googleSearchFrameborder = a; b.googleSearchFrameWidth = a; b.googleSearchFrameHeight = a; b.googleSearchNumAds = a;
    b.googleNumSearchResults = a; b.googleAdtest = a;
})();